Release 10.1A: OpenEdge Development:
Progress 4GL Reference
YEAR function
Evaluates a date expression and returns the year value of that date, including the century.
Syntax
dateA date expression for which you want to determine the year.
datetime-expressionAn expression that evaluates to a DATETIME or DATETIME-TZ. The YEAR function returns the year of the date part of the DATETIME or DATETIME-TZ value.
ExampleThis procedure uses the YEAR function to determine if an order date is in this century or the next, and then uses a different display format for each:
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |